# -*- coding:utf-8 -*-

import tornado.concurrent
import tornado.gen
from .db.mysql import Mysql
import asyncio
import os

# ----------- 数据库配置 -----------
mdb = Mysql(
    host='localhost',
    port=3307,
    user='root',
    passwd='DCtest_123.',
    db='tdp',
    charset='utf8',
)
# asyncio.get_event_loop().run_until_complete(mdb.refresh_table_description())

# 公共线程池
# executor_pool = tornado.concurrent.futures.ThreadPoolExecutor()

# ----------- 路径配置 -----------
static_path = os.path.join(os.path.dirname(__file__), '..', 'webapp')
tdp_log_path = './log'
tdp_static_path = './webapp/tdp'
job_static_path = tdp_static_path + '/job'

# ----------- 执行机配置 -----------
slave_heartbeat_interval = 0.5*60  # 秒

